package string;

public class TrimDemo {
    public static void main(String[] args) {
        String str="   hello word  ";
        String s=str.trim();
        System.out.println(s);

    }
}
